package com.dt76.smallloanbackendservice.service.etao;

import com.dt76.smallloanbackendservice.pojo.etao.CurrentUser;
import com.dt76.smallloanbackendservice.pojo.etao.Employee;
import com.dt76.smallloanbackendservice.utils.Page;

import java.util.List;

public interface EmployeeService {

    Page getPageEmp(String empName, Integer dId,Integer pageIndex);

    boolean updEmpEnable(Integer eId, Integer empEnable);

    Employee getEmpById(Integer eId);

    boolean addEmp(Employee employee,Integer currentId);

    boolean updEmp(Employee employee,Integer currentId);

    boolean delEmp(Integer eId, CurrentUser currentUser);

    Employee getEmpByLoginName(String username);

    List<Employee> getAllEmp();
}
